package com.jell.purchase.model;

import java.io.Serializable;
import java.util.Date;

/**
 * 推广人表
 * crm_promotion
 */
public class PromotionDo implements Serializable {
    /**
     * id
     * crm_promotion.id
     */
    private Integer id;

    /**
     * 创建人
     * crm_promotion.created_by
     */
    private Integer createdBy;

    /**
     * 创建时间
     * crm_promotion.created_dt
     */
    private Date createdDt;

    /**
     * 最后更新人
     * crm_promotion.last_update_by
     */
    private Integer lastUpdateBy;

    /**
     * 最后更新时间
     * crm_promotion.last_update_dt
     */
    private Date lastUpdateDt;

    /**
     * 状态(Y:有效;N:无效)
     * crm_promotion.sts
     */
    private String sts;

    /**
     * 推广人代码
     * crm_promotion.code
     */
    private String code;

    /**
     * 推广人姓名
     * crm_promotion.name
     */
    private String name;

    /**
     * 推广人电话
     * crm_promotion.phone
     */
    private String phone;

    /**
     * 推广人邮箱
     * crm_promotion.mail
     */
    private String mail;

    /**
     * 推广人地址
     * crm_promotion.address
     */
    private String address;

    /**
     * 备注
     * crm_promotion.remark
     */
    private String remark;

    /**
     * 推广人Id
     * crm_promotion.user_id
     */
    private Integer userId;

    /**
     * crm_promotion
     */
    private static final long serialVersionUID = 1L;

    /**
     * crm_promotion.id
     * @return the value of crm_promotion.id
     */
    public Integer getId() {
        return id;
    }

    /**
     * crm_promotion.id
     * @param id the value for crm_promotion.id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * crm_promotion.created_by
     * @return the value of crm_promotion.created_by
     */
    public Integer getCreatedBy() {
        return createdBy;
    }

    /**
     * crm_promotion.created_by
     * @param createdBy the value for crm_promotion.created_by
     */
    public void setCreatedBy(Integer createdBy) {
        this.createdBy = createdBy;
    }

    /**
     * crm_promotion.created_dt
     * @return the value of crm_promotion.created_dt
     */
    public Date getCreatedDt() {
        return createdDt;
    }

    /**
     * crm_promotion.created_dt
     * @param createdDt the value for crm_promotion.created_dt
     */
    public void setCreatedDt(Date createdDt) {
        this.createdDt = createdDt;
    }

    /**
     * crm_promotion.last_update_by
     * @return the value of crm_promotion.last_update_by
     */
    public Integer getLastUpdateBy() {
        return lastUpdateBy;
    }

    /**
     * crm_promotion.last_update_by
     * @param lastUpdateBy the value for crm_promotion.last_update_by
     */
    public void setLastUpdateBy(Integer lastUpdateBy) {
        this.lastUpdateBy = lastUpdateBy;
    }

    /**
     * crm_promotion.last_update_dt
     * @return the value of crm_promotion.last_update_dt
     */
    public Date getLastUpdateDt() {
        return lastUpdateDt;
    }

    /**
     * crm_promotion.last_update_dt
     * @param lastUpdateDt the value for crm_promotion.last_update_dt
     */
    public void setLastUpdateDt(Date lastUpdateDt) {
        this.lastUpdateDt = lastUpdateDt;
    }

    /**
     * crm_promotion.sts
     * @return the value of crm_promotion.sts
     */
    public String getSts() {
        return sts;
    }

    /**
     * crm_promotion.sts
     * @param sts the value for crm_promotion.sts
     */
    public void setSts(String sts) {
        this.sts = sts == null ? null : sts.trim();
    }

    /**
     * crm_promotion.code
     * @return the value of crm_promotion.code
     */
    public String getCode() {
        return code;
    }

    /**
     * crm_promotion.code
     * @param code the value for crm_promotion.code
     */
    public void setCode(String code) {
        this.code = code == null ? null : code.trim();
    }

    /**
     * crm_promotion.name
     * @return the value of crm_promotion.name
     */
    public String getName() {
        return name;
    }

    /**
     * crm_promotion.name
     * @param name the value for crm_promotion.name
     */
    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    /**
     * crm_promotion.phone
     * @return the value of crm_promotion.phone
     */
    public String getPhone() {
        return phone;
    }

    /**
     * crm_promotion.phone
     * @param phone the value for crm_promotion.phone
     */
    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    /**
     * crm_promotion.mail
     * @return the value of crm_promotion.mail
     */
    public String getMail() {
        return mail;
    }

    /**
     * crm_promotion.mail
     * @param mail the value for crm_promotion.mail
     */
    public void setMail(String mail) {
        this.mail = mail == null ? null : mail.trim();
    }

    /**
     * crm_promotion.address
     * @return the value of crm_promotion.address
     */
    public String getAddress() {
        return address;
    }

    /**
     * crm_promotion.address
     * @param address the value for crm_promotion.address
     */
    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }

    /**
     * crm_promotion.remark
     * @return the value of crm_promotion.remark
     */
    public String getRemark() {
        return remark;
    }

    /**
     * crm_promotion.remark
     * @param remark the value for crm_promotion.remark
     */
    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    /**
     * crm_promotion.user_id
     * @return the value of crm_promotion.user_id
     */
    public Integer getUserId() {
        return userId;
    }

    /**
     * crm_promotion.user_id
     * @param userId the value for crm_promotion.user_id
     */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    /**
     * crm_promotion
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        PromotionDo other = (PromotionDo) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCreatedBy() == null ? other.getCreatedBy() == null : this.getCreatedBy().equals(other.getCreatedBy()))
            && (this.getCreatedDt() == null ? other.getCreatedDt() == null : this.getCreatedDt().equals(other.getCreatedDt()))
            && (this.getLastUpdateBy() == null ? other.getLastUpdateBy() == null : this.getLastUpdateBy().equals(other.getLastUpdateBy()))
            && (this.getLastUpdateDt() == null ? other.getLastUpdateDt() == null : this.getLastUpdateDt().equals(other.getLastUpdateDt()))
            && (this.getSts() == null ? other.getSts() == null : this.getSts().equals(other.getSts()))
            && (this.getCode() == null ? other.getCode() == null : this.getCode().equals(other.getCode()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
            && (this.getMail() == null ? other.getMail() == null : this.getMail().equals(other.getMail()))
            && (this.getAddress() == null ? other.getAddress() == null : this.getAddress().equals(other.getAddress()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()));
    }

    /**
     * crm_promotion
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCreatedBy() == null) ? 0 : getCreatedBy().hashCode());
        result = prime * result + ((getCreatedDt() == null) ? 0 : getCreatedDt().hashCode());
        result = prime * result + ((getLastUpdateBy() == null) ? 0 : getLastUpdateBy().hashCode());
        result = prime * result + ((getLastUpdateDt() == null) ? 0 : getLastUpdateDt().hashCode());
        result = prime * result + ((getSts() == null) ? 0 : getSts().hashCode());
        result = prime * result + ((getCode() == null) ? 0 : getCode().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
        result = prime * result + ((getMail() == null) ? 0 : getMail().hashCode());
        result = prime * result + ((getAddress() == null) ? 0 : getAddress().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        return result;
    }
}